export const x = 5;;

export function foo() {
  // code
};

export const bar = () => {
  // code
};;

export class C {
  public field: string = 'field';;

  static {
    // code
  };

  public method() {
    // code
  };
};

//github

let x = 5;;
//output: var x = 5;

function foo(){};
//output: function foo(){}

for(;;);;
// output: for(;;);

while(0);;
// output: while(0);

do;while(0);;
//output: do;while(0);

for(a in b);;
//output: for(a in b);

for(a of b);;
//output: for(a of b);

if(true);;
//output: if(true);

if(true){} else;;
//output: if(true){} else;

if(true){;} else {;}
//output: if(true){} else {}

foo:;;
//output: foo:;

with(foo);;
//output: with(foo);

with(foo){;}
// output: with(foo){}

class A { ; }
//output: class A {  }

class A { /*a*/; }
//output: class A { /*a*/ }

class A { ; a() {} }
//output: class A {  a() {} }

class A { a() {}; }
//output: class A { a() {} }

class A { a() {}; b() {} }
//output: class A { a() {} b() {} }

class A {; a() {}; b() {}; }
//output: class A { a() {} b() {} }

class A { a() {}; get b() {} }
//output: 'class A { a() {} get b() {} }

class Foo {
  public foo: number = 0;;
}
/*output:
class Foo {
  public foo: number = 0;
}*/

class Foo {
  public foo: number = 0;; public bar: number = 1;;
  public baz: number = 1;;
}
/*output:
class Foo {
  public foo: number = 0; public bar: number = 1;
  public baz: number = 1;
}*/

class Foo {
  abstract foo: number;; abstract bar: number;;
  abstract baz: number;;
}
/*output:
class Foo {
  abstract foo: number; abstract bar: number;
  abstract baz: number;
}*/


class Foo {
  abstract foo();; abstract bar();;
  abstract baz();;
  abstract foo(): void;; abstract bar(): void;;
  abstract baz(): void;;
}
/*output:
class Foo {
  abstract foo(); abstract bar();
  abstract baz();
  abstract foo(): void; abstract bar(): void;
  abstract baz(): void;
}*/